package com.hoshiibuy.customerOperation.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户商品收藏记录
 * </p>
 *
 * @author Mr.Wu
 * @since 2019-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "GoodsCollectRecord对象", description = "用户商品收藏记录")
public class GoodsCollectRecord extends Model<GoodsCollectRecord> {

	private static final long serialVersionUID = 1L;

	private Long id;

	@ApiModelProperty(value = "用户主键")
	private Long userId;

	@ApiModelProperty(value = "渠道  1-PC 2-APP,3-微信小程序 4-微信公众号 5-线下门店")
	private Long channel;

	@ApiModelProperty(value = "门店ID")
	private Long storeId;

	@ApiModelProperty(value = "商品spuid")
	private Long spuId;

	@ApiModelProperty(value = "商品skuid")
	private Long skuId;

	@ApiModelProperty(value = "是否已经标志删除")
	private Integer deleted;

	@ApiModelProperty(value = "收藏时间")
	private LocalDateTime createdtime;

	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updatedtime;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
